/**
 * Title: HttpContextUtils.java
 * @author WuJin
 * @date 2020年6月16日
 * @version 1.0
 */
package com.pm.utils;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

/**
 * Title: HttpContextUtils
 * @author WuJin
 * @date 2020年6月16日
 */
public class HttpContextUtils {
    public static HttpServletRequest getHttpServletRequest() {
        return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
    }
}
